const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    publicPath: "/",
    transpileDependencies: true,
    //关闭代码语法检查
    lintOnSave: false,
    //
    //devServer: 'http://localhost:9999',
    devServer: {
        proxy: {
            '/api': {
                target: 'http://localhost:48080',
                //用于支持websocket
                ws: true,
                changeOrigin: true,
                //这个配置很重要，否则请求到后端，url会携带api
                pathRewrite: {
                    '/api': '/'  // rewrite path
                }
            },
        }
    }
})
